package threadpool;

import java.util.concurrent.Executor;

public class T01_ExecutorTest implements Executor {

    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
            System.out.println(123);
            try {
                Thread.sleep(10000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        });
        thread.setDaemon(false);
        thread.start();

    }

    //多了一种开启线程的方式， 可以通过execute提交一个线程任务
    @Override
    public void execute(Runnable command) {

    }
}
